package com.oron3.locker;

import java.io.Serializable;

import com.ofek.applicationbase.forms.FormField;
import com.ofek.base.db.DataField;
import com.ofek.base.db.DataTypeClass;

@DataTypeClass
public class SecretID implements Serializable {
	public SecretID(final long sid2) {
		sid = sid2;
	}

	@DataField(isKey = true, isAutoIncrement = true, isNullable = false)
	@FormField
	public long sid;

	public SecretID(final long sid, final String title) {
		this.sid = sid;
		this.title = title;
	}

	public SecretID() {
		title = "";
	}

	public SecretID(String title) {
		this.title = title;
	}

	@Override
	public String toString() {
		return title;
	}

	@DataField(isNullable = false)
	@FormField
	public String title;
}
